package com.xmtlxx.web.controller.wms.service;

import com.xmtlxx.common.core.domain.PageQuery;
import com.xmtlxx.common.core.page.TableDataInfo;
import com.xmtlxx.wms.domain.ExWarehouse;
import com.xmtlxx.wms.domain.bo.ExWarehouseBo;
import com.xmtlxx.wms.domain.bo.ExWarehouseProExportBo;
import com.xmtlxx.wms.domain.vo.ExWarehouseProExportVo;
import com.xmtlxx.wms.domain.vo.ExWarehouseVo;

import java.util.Collection;
import java.util.List;

/**
 * 出库单Service接口
 *
 * @author xmtlxx
 * @date 2022-08-15
 */
public interface IExWarehouseService {

    /**
     * 查询出库单
     *
     * @param id 出库单主键
     * @return 出库单
     */
    ExWarehouseVo queryById(String id);
    ExWarehouseVo queryByTaskId(String taskId);

    /**
     * 查询出库单列表
     *
     * @param bo 出库单
     * @return 出库单集合
     */
    TableDataInfo<ExWarehouseVo> queryPageList(ExWarehouseBo bo, PageQuery pageQuery);

    /**
     * 查询出库单列表
     *
     * @param bo 出库单
     * @return 出库单集合
     */
    List<ExWarehouseVo> queryList(ExWarehouseBo bo);

    /**
     * 修改出库单
     *
     * @param bo 出库单
     * @return 结果
     */
    ExWarehouse insertByBo(ExWarehouseBo bo);

    /**
     * 修改出库单
     *
     * @param bo 出库单
     * @return 结果
     */
    ExWarehouse updateByBo(ExWarehouseBo bo);

    Boolean updateExWarehouseByBo(ExWarehouseBo bo);

    /**
     * 校验并批量删除出库单信息
     *
     * @param ids 需要删除的出库单主键集合
     * @param isValid 是否校验,true-删除前校验,false-不校验
     * @return 结果
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    Boolean returnWithValidByIds(Collection<String> ids, Boolean isValid);

    Boolean returnTransfer(Collection<String> ids, Boolean isValid);

    List<ExWarehouseProExportVo> getExWarehouseProExportList(ExWarehouseProExportBo bo);
}
